package com.example.aigc_education.domain.dto.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class ShowPlanQuery {
    @NotNull(message = "页数不能为空")
    private Integer page;
    @NotNull(message = "记录数不能为空")
    private Integer pageSize;
    private PlanFilter filter;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PlanFilter {
        // 可筛选的优先级标签
        private String[] tags;
        //是否需要展示已完成的计划
        private Boolean showCompleted;
    }
}
